package com.freightoa.sgl_login.common

import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.freightoa.foundation.result.Router
import com.freightoa.foundation.result.Routes
import javax.inject.Inject

class LoginRouter @Inject constructor(): Router {
    override fun navigateTo(context: Context, path: String, data: Bundle?) {
        when (path) {
            Routes.HOME -> {
                val intent = Intent(context, Class.forName("com.lhgray.sglhome.presentation.ui.activity.HomeActivity"))
                context.startActivity(intent)
            }
        }
    }
}